package com.kefu.web.im.netty.event.handler.multiupdate;

import com.kefu.web.im.netty.event.UserDataEvent;
import com.lmax.disruptor.EventHandler;

public class MultiUpdateEventHandler implements EventHandler<UserDataEvent>{

	@Override
	public void onEvent(UserDataEvent event, long arg1, boolean arg2)
			throws Exception {
		if(event.getEvent()!=null){
			//记录事件
//			MultiUpdateEvent multiEventEvent = (MultiUpdateEvent)event.getEvent() ;
//			if(UKDataContext.MultiUpdateType.SAVE.toString().equals(multiEventEvent.getEventype())){
//				multiEventEvent.getCrudRes().delete(multiEventEvent.getData()) ;
//				multiEventEvent.getCrudRes().save(multiEventEvent.getData()) ;
//			}else if(UKDataContext.MultiUpdateType.DELETE.toString().equals(multiEventEvent.getEventype())){
//				multiEventEvent.getCrudRes().delete(multiEventEvent.getData()) ;
//			}
		}
	}

}
